package cn.JHai.rbac.domain;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class CustomerTraceHistory {
    private Long id;

    private Date trace_time;

    private String trace_details;

    private Long trace_type_id;

    private Integer trace_result;

    private Long customer_id;

    private Long input_user_id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getTrace_time() {
        return trace_time;
    }

    public void setTrace_time(String trace_time) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd");//设置时间格式
        try {
            Date ts = sdf.parse(trace_time);//转换为Date类型 这里要抛一个异常
            this.trace_time = ts;
        } catch (ParseException e) {
            e.printStackTrace();

        }

    }

    public String getTrace_details() {
        return trace_details;
    }

    public void setTrace_details(String trace_details) {
        this.trace_details = trace_details;
    }

    public Long getTrace_type_id() {
        return trace_type_id;
    }

    public void setTrace_type_id(Long trace_type_id) {
        this.trace_type_id = trace_type_id;
    }

    public Integer getTrace_result() {
        return trace_result;
    }

    public void setTrace_result(Integer trace_result) {
        this.trace_result = trace_result;
    }

    public Long getCustomer_id() {
        return customer_id;
    }

    public void setCustomer_id(Long customer_id) {
        this.customer_id = customer_id;
    }

    public Long getInput_user_id() {
        return input_user_id;
    }

    public void setInput_user_id(Long input_user_id) {
        this.input_user_id = input_user_id;
    }

    @Override
    public String toString() {
        return "CustomerTraceHistory{" +
                "id=" + id +
                ", trace_time=" + trace_time +
                ", trace_details='" + trace_details + '\'' +
                ", trace_type_id=" + trace_type_id +
                ", trace_result=" + trace_result +
                ", customer_id=" + customer_id +
                ", input_user_id=" + input_user_id +
                '}';
    }
}